﻿namespace MingYuanYun.Data.Abstractions
{
	internal static class DriverProvider
	{
		public static ReflectionBasedDriver GetDriver(Driver driver)
		{
			switch (driver)
			{
				case Driver.NpgsqlDriver:
					return new NpgsqlDriver();
				case Driver.MySqlDataDriver:
					return new MySqlDataDriver();
                case Driver.SqlServer:
                    return new SqlServerDriver();

                default:
					return null;
			}
		}
	}
}
